package BookTest;

import java.util.Scanner;

public class I8Test {
    public static void main(String[] args) {
        String str = "张三，李四，王五，赵六，周七，王哲，白浩，贾蓉，慕容阿三，黄蓉";
        String[] strs = str.split("，");
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入你的名字：");
        String a = sc.next();
        for (int i = 0; i < strs.length; i++) {
            String b = strs[i];
            System.out.println(b);
            if(a.equals(b)){
                System.out.println("签到成功");
                break;
            }else{
                System.out.println("签到失败");

            }
        }

    }
}
